Avoid crash in Fselect_frame due to null selected_window (Bug#7728).
authorMartin Rudalics <rudalics@gmx.at>
Sat, 15 Jan 2011 02:55:58 +0000 (21:55 -0500)
committerChong Yidong <cyd@stupidchicken.com>
Sat, 15 Jan 2011 02:55:58 +0000 (21:55 -0500)
commit8300cabc423baf0b7ebc55cd315a35ed0e9f06ad
tree48a7ae3cd332f1a6f50ac5863d34219896db19ae
parentfa2868101a36cd6318306933a1572c19d60d39cc
Avoid crash in Fselect_frame due to null selected_window (Bug#7728).

* window.c (inhibit_point_swap): New variable.
(Fselect_window): If inhibit_point_swap is nonzero, avoid swapping
point this time.
(Fset_window_configuration): Set inhibit_point_swap to 1 instead
of setting selected_window to nil (Bug#7728).
src/ChangeLog
src/window.c